package com.bzqn.baseframe;

import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

public class BaseActivity extends AbstructBaseActivity {

	protected int mScreenWidth;
	protected int mScreenHeight;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		getDevicesInfo();
	}

	protected ViewGroup.MarginLayoutParams getMarginViewGroupLayoutParams(int width,int height) {
		return new ViewGroup.MarginLayoutParams(width, height);
	}
	protected RelativeLayout.LayoutParams getMarginRelativeLayoutParams(int width,int height) {
		return new RelativeLayout.LayoutParams(width, height);
	}
	
	protected LinearLayout.LayoutParams getMarginLinearLayoutParams(int width,int height) {
		return new LinearLayout.LayoutParams(width, height);
	}
	private void getDevicesInfo() {
		DisplayMetrics metric = new DisplayMetrics();
		getWindowManager().getDefaultDisplay().getMetrics(metric);
		mScreenWidth = metric.widthPixels;
		mScreenHeight = metric.heightPixels;
	}



	@Override
	void onHttpRet(String content) {

	}

}
